package cn.jsl.user.mapper;

import cn.jsl.user.domain.User;
import cn.jsl.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jijie
 * @since 2022-06-01
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 手机号码注册 - 发送手机验证码  - 判断是否注册过
     * @param phone
     * @return
     */
    User loadByPhone(String phone);

    /**
     * 邮箱注册 - 判断是否注册过
     * @param email
     * @return
     */
    User loadByEmail(String email);

    /**
     * 寻主消息
     * @param id
     * @return
     */
    User loadByLogininfoId(Long id);
}
